package cn.edw.swu.bc.swucommunity

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.ContactsContract
import android.widget.Button
import androidx.core.content.ContentResolverCompat

class LoginActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_login)
        initView()
    }
    fun initView()
    {
        val btn_login= findViewById<Button>(R.id.login)
        btn_login.setOnClickListener(){
            val intent= Intent(it.context, MainActivity::class.java)
            startActivity(intent)
        }

    }

}